<?php 



echo "<br>";
// preg_match(pattern, subject);


// preg_match_all(pattern, subject, matches);


// preg_split(pattern, subject);

$str ="hel6lo wor78l888d";

// $preg = "/([a-z])\d\d([a-z])/";


$num = '8001'; //6547-8754

$preg = "/^([6-7]\d{3}|8000)$/";


$c = preg_match($preg, $num);

// $c = preg_replace($preg, '$1$2', $str);


// var_dump($c);



// 12312321@qq.com;

// a@13.com




$mail = 'zhibin@sina.com'; //6547-8754

$preg = "/^([\da-z]+[\da-z_]*[\da-z]+|[\da-z])@([\da-z]+[\da-z-]*[\da-z]+|[\da-z])(\.[a-z]{2,})+$/";


// $id = "445281 1986 11 24 1888";

// $id = "44528119861231188x";

$preg= "/^(1[1-5]|2[1-3]|3[1-7]|4[1-6]|5[0-4]|6[1-5]|8[12])\d{4}(19\d{2}|20(0[0-9]|1[0-7]))(0[1-9]|1[0-2])(0[1-9]|[12][0-9]|3[01])\d{3}[0-9x]$/";
// 

$c = preg_match($preg, $id);


var_dump($c);














 ?>